import requests
import re

headers = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',

}

url = 'https://music.163.com/api/playlist/detail?id=3778678'
response = requests.get(url, headers=headers)
for i in range(len(response.json()['result']['tracks'])):
    title = response.json()['result']['tracks'][i]['name']
    author = response.json()['result']['tracks'][i]["artists"][0]['name']
    print(title, author)
